<?php
$time1=time();
$time2=strtotime("2002-03-04");
echo "当前时间:".date("Y-m-d");
echo "<br>何小宇存活时间(秒):".$time3=$time1-$time2;
echo "<br>何小宇存活时间(天):".$time4=floor(($time1-$time2)/86400);
$year=floor($time3/31536000);
$month=floor($time3%31536000/2592000);
$day=floor($time3%31536000%2592000/86400);
$hour=floor($time3%31536000%2592000%86400/3600);
$minute=floor($time3%31536000%2592000%86400%3600/60);
$second=floor($time3%31536000%2592000%86400%3600%60);
echo "<br>何小宇存活时间(时间戳):".$time5=$year."年".$month."月".$day."日--".$hour."时--".$minute."分--".$second."秒";
